﻿using PersonalWeekReport.Models.Professional;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace PersonalWeekReport.Models.Common
{
    public class Employee
    {
        [Key, Editable(false)]
        public Guid Id { set; get; }

        [Display(Name = "姓名", Prompt = "请输入合法姓名"), Required]
        public string Name { get; set; }

        [Display(Name = "员工编号")]
        public string EmployeeId { set; get; }


        public string DepartmentId { set; get; }

        [Display(Name = "部门"), ForeignKey("DepartmentId")]
        public virtual Department Department { get; set; }

        public virtual ICollection<DailyWorkRecord> DailyWorkRecords { set; get; }
       
    }
}